package com.example.emos.wx.user.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 把令牌封装成认证对象
 *
 * @Author YinXi
 * @Versin 1.0.0
 * @Date 2023/7/27
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token){
        this.token=token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
